/* 修复后的CSS代码，恢复原有字体导入和样式 */
@import url("https://fonts.googleapis.com/css2?family=Ma+Shan+Zheng&display=swap");

/* 基础重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Ma Shan Zheng", "SimSun", serif;
  overflow-x: hidden;
  overflow-y: auto; /* 允许垂直滚动 */
  min-height: 100vh;
  padding: 0; /* 移除原有padding */
}

/* 背景视频（固定不动） */
.background-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-color: #000;
}

.bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* 覆盖整个屏幕，可能裁剪 */
}

/* 中间纯白内容容器（占满屏幕宽度） */
.content-container {
  background-color: rgba(255, 255, 255, 0.9); /* 85%透明度的白色 */
  min-height: 100vh;
  width: 70%;
  margin: 0 auto;
}

/* 内容区域容器（居中显示） */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

/* 标题区域 */
.title-container {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
  padding-top: 20px; /* 顶部添加间距 */
}

.back-btn {
  position: absolute;
  left: 20px;
  width: 50px;
  height: 50px;
  cursor: pointer;
  transition: transform 0.2s;
}

.back-btn:hover {
  transform: scale(1.05);
}

.back-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-title {
  text-align: center;
  font-size: 3.5rem;
  color: #333;
  letter-spacing: 2px;
  flex: 1;
  font-family: "Ma Shan Zheng", "SimSun", serif;
}

/* 内容区域 */
.content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin-bottom: 40px;
}

.image-container {
  width: 40%;
  padding-bottom: 40%;
  position: relative;
  background-color: #eee;
  border-radius: 8px;
  overflow: hidden;
}

.square-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.text-content {
  flex: 1;
  text-align: center;
}

.text-content h2 {
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 10px;
  font-family: "Ma Shan Zheng", "SimSun", serif;
}

.text-content p {
  color: #666;
  line-height: 1.8;
  font-size: 1.5rem;
  font-family: "Ma Shan Zheng", "SimSun", serif;
}

/* 地图容器和按钮样式 */
.map-container {
  position: relative;
  width: 85%;
  padding-bottom: 85%;
  background-image: url("../images/地图.png");
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  overflow: hidden;
}

.map-btn {
  position: absolute;
  width: 12%; /* 调整按钮大小 */
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s, box-shadow 0.2s;
}

.map-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.map-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 地图动画（仅应用于有特定类的页面） */
.page-with-map-animation .map-container {
  opacity: 0;
  animation: fadeIn 1s ease-out forwards;
  animation-delay: 0.3s;
}

.page-with-map-animation .map-btn {
  opacity: 0;
  animation: fadeIn 0.8s ease-out forwards;
}

.page-with-map-animation #btn-jiucengta {
  animation-delay: 0.6s;
}
.page-with-map-animation #btn-jiuselu {
  animation-delay: 0.8s;
}
.page-with-map-animation #btn-mingshashan {
  animation-delay: 1s;
}
.page-with-map-animation #btn-yueyaquan {
  animation-delay: 1.2s;
}
.page-with-map-animation #btn-tuoling {
  animation-delay: 1.4s;
}
.page-with-map-animation #btn-shujuan {
  animation-delay: 1.6s;
}

/* 上传区域 */
.upload-wrapper {
  text-align: center;
  margin: 20px 0;
}

.upload-image-btn {
  display: inline-block;
  cursor: pointer;
  width: 300px;
  height: 300px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
}

.upload-image-btn:hover {
  transform: scale(1.05);
}

.upload-btn-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.uploaded-image-container {
  display: none;
  margin: 0 auto;
  max-width: 80%;
}

.uploaded-img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* 音频上传区域样式 */
.upload-audio-wrapper {
  text-align: center;
  margin: 20px 0;
}

.upload-audio-btn {
  display: inline-block;
  cursor: pointer;
  width: 300px;
  height: 80px; /* 调整高度 */
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s;
}

.upload-audio-btn:hover {
  transform: scale(1.05);
}

.upload-audio-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.uploaded-audio-container {
  display: none;
  margin: 20px auto;
  max-width: 80%;
}

.uploaded-audio {
  width: 100%;
}

.audio-info {
  margin-top: 10px;
  font-size: 1.2rem;
  color: #333;
}

/* 按钮样式 */
.confirm-container {
  text-align: center;
  margin-top: 20px;
  margin-bottom: 40px;
}

.confirm-btn {
  padding: 12px 30px;
  font-size: 1.2rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: #4caf50;
  color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.confirm-btn:enabled:hover {
  background-color: #43a047;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.confirm-btn:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.create-btn {
  padding: 15px 35px;
  font-size: 1.5rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: #4caf50;
  color: #fff;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  font-family: "Ma Shan Zheng", "SimSun", serif;
}

.create-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  background-color: #43a047;
}

/* 新增：文本输入区域样式 */
.text-input-wrapper {
  margin-bottom: 20px;
}

.text-input {
  width: 100%;
  padding: 10px;
  font-size: 1.2rem;
  font-family: "Ma Shan Zheng", "SimSun", serif;
  border: 1px solid #ccc;
  border-radius: 4px;
  resize: vertical;
}

.text-input:focus {
  outline: none;
  border-color: #4caf50;
  box-shadow: 0 0 4px rgba(76, 175, 80, 0.5);
}

/* 渐显动画 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* 响应式适配 */
@media (max-width: 768px) {
  .content {
    flex-direction: column;
  }

  .image-container {
    width: 60%;
    padding-bottom: 60%;
  }

  .text-content {
    width: 100%;
  }

  .upload-image-btn {
    width: 200px;
    height: 200px;
  }

  .back-btn {
    width: 40px;
    height: 40px;
    left: 10px;
  }

  .page-title {
    font-size: 2.5rem;
  }

  /* 移动端地图调整 */
  .map-container {
    width: 95%;
    padding-bottom: 95%;
  }

  .map-btn {
    width: 15%; /* 移动端按钮稍大 */
  }

  /* 移动端按钮调整 */
  .create-btn {
    padding: 12px 30px;
    font-size: 1.2rem;
  }
}
